Create new numbers (e.g. OEN, batteryID, etc.) corresponding to BPN endpoints as batch.
Create new numbers (e.g. OEN, batteryID, etc.) corresponding to BPN endpoints as batch.
- application/json
Request Body array required
The request body is expecting a list of key (type, e.g. OEN, batteryID, etc.) - value (explicit number) pairs, where this service will respond with success/error message on persistance of this key-value-pairs. The BPN is hand-over by the authentication/authorization (→ token). Only the owner of a BPN can link any number (e.g. OEN, batteryID, etc.) to his BPN.
- type string required
Possible values:
non-empty
and<= 200 characters
- key string required
Possible values:
non-empty
and<= 200 characters
Responses
- 201
key value for BPN in batch created successfully
- application/json
- Schema
- Example (from schema)
- Complete
Schema array
- message string
The detailed message for the creation.
details object
An object with key/value pairs containing additional information exception.
property name*
object- key string
The created key.
- status integer
The status code
[
{
"message": "string",
"details": {},
"key": "string",
"status": 0
}
]
[
{
"message": "Validation failed.",
"details": {
"type": "type oenId is not allowed."
},
"key": "oenId-123",
"status": 400
},
{
"message": "BpnDiscovery successfully created",
"details": null,
"key": "oen-4444",
"status": 200
},
{
"message": "BpnDiscovery successfully created",
"details": null,
"key": "bpid-123",
"status": 200
}
]
Loading...